package com.yuma.springshiroredisthymeleaf.common;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS("200", "成功!"),
    BODY_NOT_MATCH("400","请求的数据格式不符!"),
    SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配!"),
    NOT_FOUND("404", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误!"),
    SERVER_BUSY("503","服务器正忙，请稍后再试!"),
    NO_DATA("1001","没有数据"),
    NO_ACCOUNT("2001","没有此用户"),
    WRONG_PASSWORD("2002","密码错误");

    private String code;
    private String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}